<html>
<head>
<title><?php echo $cfg_webname;?> - 友情链接列表</title>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="keywords" content="{dede:field name='keywords' function='html2text(@me)'/}" />
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />

{dede:include filename="plus_header.htm"/}
<!-- /header -->
<main>
<!-- 面包屑 -->
{dede:include filename="plus_breadcrumb.htm"/}
<!-- /面包屑 -->
<div class="uk-container">
<div class="uk-card uk-card-small uk-card-default" style="margin-top: 40px;margin-bottom: 40px;">
<div class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<div class="uk-width-expand uk-first-column">
<span class="cat-txt">友情链接列表</span>
</div>
</div>
</div>
<div class="uk-card-body">
<ul class="uk-list uk-list-divider">
<?php
$row = 180;
$titlelen = 50;
$dsql->SetQuery("Select * from `#@__flink` where ischeck>0 order by sortrank asc");
$dsql->Execute();
$revalue = "";
for($i=1;$i<=$row;$i++)
{
if($dbrow=$dsql->GetObject())
{
$wtitle = cn_substr($dbrow->webname,$titlelen);
if($dbrow->logo=="")
$revalue.= "<li><a href='".$dbrow->url."' target='_blank'>$wtitle</a></li>";
else
$revalue.= "<li><a href='".$dbrow->url."' target='_blank'><img src='".$dbrow->logo."' width='88' height='31' border='0' alt='$wtitle'></a></li>";
}
if(!$dbrow) break;
}
echo $revalue;
?>
</ul>
</div>
</div>
</div>
<!-- //底部模板 -->
{dede:include filename="plus_footer.htm"/}
</body>
</html>